home *** CD-ROM | disk | FTP | other *** search
- Path: ix.netcom.com!netnews
- From: martypro@ix.netcom.com (Marty)
- Newsgroups: comp.lang.c
- Subject: Question-how print time from unix
- Date: 27 Mar 1996 04:56:15 GMT
- Organization: Netcom
- Message-ID: <4jahpf$dpp@cloner2.ix.netcom.com>
- NNTP-Posting-Host: tam-fl4-13.ix.netcom.com
- Mime-Version: 1.0
- Content-Type: Text/Plain; charset=US-ASCII
- X-NETCOM-Date: Tue Mar 26 8:56:15 PM PST 1996
- X-Newsreader: WinVN 0.99.7
-
- Ok here is a dumb question I'm sure:
-
- Below is the relevant code I am using to input the time into a structure
- element and can't find the appropriate conversion character to use with
- printf to print it, that is if that is how you print it. Any help you
- can give me will be greatly appreciated.
-
- struct queue
- {char name[MAX1];
- time_t time_in;
- int priority;
- }customer[MAX2];
-
- customer[inctr].time_in=time(NULL);
-
-
-